"use strict";

Vue.prototype.$message = function (option) {
    // $.prompt(option.message);
    // console.log($.toast);
    $.toast(option.message, null, option.type ? "alert-" + option.type : 'alert-danger');
};

// Vue.prototype.$alert = $.model.alert;
// Vue.prototype.$confirm = $.model.confirm;
Vue.prototype.$tron = new mm_tron({
    // 测试网合约地址
    // contract_address: "TYe7gdxXExztWMJ17UD2QyYyY1UxL2Lbbd",
    // 正式网合约
    contract_address: "TTYwLkG4gU6LSXsx7gZekWARG2imVeGtyc",
    precision: 1000000,
    // * 10000000000,
    chainId: 1 // 1正式 3测试
});